package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ellen
 * @since 2018-09-29
 */
@TableName("tb_stock")
public class Stock extends Model<Stock> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 唯一标识列
     */
	private String uuid;
    /**
     * 商品uuid
     */
	@TableField("goods_uuid")
	private String goodsUuid;
    /**
     * 省份
     */
	private String province;
    /**
     * 省份id
     */
	@TableField("province_id")
	private Integer provinceId;
    /**
     * 库存量
     */
	private Integer stock;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 创建者
     */
	private String creator;
	private Date updatetime;
	private String mender;
    /**
     * 代理商uuid
     */
	@TableField("agent_uuid")
	private String agentUuid;
    /**
     * 代理商sku
     */
	private String sku;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getGoodsUuid() {
		return goodsUuid;
	}

	public void setGoodsUuid(String goodsUuid) {
		this.goodsUuid = goodsUuid;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public Integer getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender;
	}

	public String getAgentUuid() {
		return agentUuid;
	}

	public void setAgentUuid(String agentUuid) {
		this.agentUuid = agentUuid;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Stock{" +
			", id=" + id +
			", uuid=" + uuid +
			", goodsUuid=" + goodsUuid +
			", province=" + province +
			", provinceId=" + provinceId +
			", stock=" + stock +
			", isdeleted=" + isdeleted +
			", createtime=" + createtime +
			", creator=" + creator +
			", updatetime=" + updatetime +
			", mender=" + mender +
			", agentUuid=" + agentUuid +
			", sku=" + sku +
			"}";
	}
}
